<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div id="user_nav">
<!--	<s:if test="#request.user != null">-->
<!--		<s:set name="user" value="%{#request.user}" scope="session"/>-->
<!--	</s:if>-->
	<s:if test="#session.user == null">
		<a class="user" href="../user/login.jsp">你还没登录！</a>
		<a href="../user/login.jsp">登录</a>
		<a href="../user/register.jsp">注册</a>
	</s:if>
	<s:else>
		<a class="user" href="../forum/forum.jsp">欢迎<s:property value="#session.user" /></a>
		<!-- User Logout Action -->
		<s:a class="user" value="/user/Logout">注销</s:a>
	</s:else>
	<a class="nobg" href="#">帮助</a>
</div>